#include <stdio.h>
#include <stdlib.h>

typedef struct NodeList
{
  int data;
  struct NodeList *next;
} NodeList, *Node;

int main()
{
  Node L = (Node)malloc(sizeof(NodeList));
  if (L == NULL)
  {
    printf("Memory allocation failed\n");
    return 1;
  }

  // 可以在这里初始化节点数据
  L->data = 0;
  L->next = NULL;

  printf("%d", L->data);

  // 释放内存
  free(L);
  return 0;
}
